package ohtu;

import java.io.Serializable;

public class Course implements Serializable {

	private String name;
	private int grade;
        private int points;

	private EventContainer events = new EventContainer();

	public Course(String name, int grade, int points) {
		this.name = name;
		this.grade = grade;
                this.points = points;
	}

	public void add(Event e) {
		events.add(e);
	}

	public void remove(Event e) {
		events.remove(e);
	}

	public void setName(String n) { name = n; }
	public String getName() { return name; }
	public void setGrade(int g) { grade = g; }
	public int getGrade() { return grade; }
        public void setPoints(int p) { points = p; }
        public int getPoints() { return points; }

	public EventContainer getEvents() { return events; }

	@Override
	public String toString() { return name; }

}
